var express = require('express');
var router = express.Router();

/* GET users listing. */
router.get('/', function(req, res, next) {
  console.log(req.session.user_id);
  if(req.session.user_id){
    res.send('respond with a resource');
  }else{
    res.json({
      code:-1,
      msg:"请先登录！"
    })
  }
});

module.exports = router;
